package com.jintoufs.service.ad;

import com.jintoufs.dao.QueryFilters;
import com.jintoufs.domain.ad.Ad;

import java.util.List;
import java.util.Map;

/**
 * Created by xufei on 2017/12/20.
 */
public interface AdService {

    List<Map<String,Object>> queryByParams(Map<String, Object> params);

    /**
     * 保存广告
     *
     * @return
     */
    Map<String, Object> save(Ad ad);

    void delete(Integer id);

    List<Ad> getByFilter(QueryFilters filters);

    //广告明细
    Ad getById(Integer id);

    Ad getLastedAd();
}
